home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Unbuffered character input...
- Date: 30 Jan 1996 13:31:54 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4em2oaINN54i@keats.ugrad.cs.ubc.ca>
- References: <Pine.SGI.3.91.960129190205.27936A-100000@tahiti.cs.unm.edu> <4elf0t$5vd@ixnews2.ix.netcom.com>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4elf0t$5vd@ixnews2.ix.netcom.com>,
- Kevin Landry <kevgar@ix.netcom.com> wrote:
- >Caleb Haley <chaley@tahiti.cs.unm.edu> wrote:
- >
- >>Greetings!
- >
- >>Just curious--is there a way to do unbuffered character input in c?
- >>i.e. getting just one character without waiting for a carriage return
- >>(enter)...
- >
- >I believe there are two commands in C that do this. getch() is
- >unbuffered input without echo and getche() has the echo. Hope this
- >helps.
-
- Sigh. C doesn't have commands. C has statements. The getch() and getche() that
- you describe are library functions---system-specific library functions,
- moreover. They are not part of the standard library.
-
- To those of you who have been regulars of this group for a while, please bear
- with me: I will surely kick the habit of responding to clueless DOS
- programmers before long. In the past week, I've seen the stupid "how do I get
- single characters from the keyboard" asked about thirty times! The replies
- are often worse than the questions.
- --
-
-